<%@ page import="sistema.Fabricante" %>



<div class="fieldcontain ${hasErrors(bean: fabricanteInstance, field: 'cnpj', 'error')} ">
	<label for="cnpj">
		<g:message code="fabricante.cnpj.label" default="Cnpj" />
		
	</label>
	<g:textField name="cnpj" maxlength="18" value="${fabricanteInstance?.cnpj}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fabricanteInstance, field: 'incricaoEstadual', 'error')} ">
	<label for="incricaoEstadual">
		<g:message code="fabricante.incricaoEstadual.label" default="Incricao Estadual" />
		
	</label>
	<g:textField name="incricaoEstadual" maxlength="20" value="${fabricanteInstance?.incricaoEstadual}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fabricanteInstance, field: 'razaoSocial', 'error')} ">
	<label for="razaoSocial">
		<g:message code="fabricante.razaoSocial.label" default="Razao Social" />
		
	</label>
	<g:textField name="razaoSocial" maxlength="50" value="${fabricanteInstance?.razaoSocial}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fabricanteInstance, field: 'nomeFantasia', 'error')} ">
	<label for="nomeFantasia">
		<g:message code="fabricante.nomeFantasia.label" default="Nome Fantasia" />
		
	</label>
	<g:textField name="nomeFantasia" maxlength="50" value="${fabricanteInstance?.nomeFantasia}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fabricanteInstance, field: 'rua', 'error')} ">
	<label for="rua">
		<g:message code="fabricante.rua.label" default="Rua" />
		
	</label>
	<g:textField name="rua" maxlength="50" value="${fabricanteInstance?.rua}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fabricanteInstance, field: 'numPredio', 'error')} ">
	<label for="numPredio">
		<g:message code="fabricante.numPredio.label" default="Num Predio" />
		
	</label>
	<g:textField name="numPredio" maxlength="10" value="${fabricanteInstance?.numPredio}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fabricanteInstance, field: 'bairro', 'error')} ">
	<label for="bairro">
		<g:message code="fabricante.bairro.label" default="Bairro" />
		
	</label>
	<g:textField name="bairro" maxlength="20" value="${fabricanteInstance?.bairro}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fabricanteInstance, field: 'cidade', 'error')} ">
	<label for="cidade">
		<g:message code="fabricante.cidade.label" default="Cidade" />
		
	</label>
	<g:textField name="cidade" maxlength="30" value="${fabricanteInstance?.cidade}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fabricanteInstance, field: 'cep', 'error')} ">
	<label for="cep">
		<g:message code="fabricante.cep.label" default="Cep" />
		
	</label>
	<g:textField name="cep" maxlength="9" value="${fabricanteInstance?.cep}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fabricanteInstance, field: 'tipoFornecedor', 'error')} ">
	<label for="tipoFornecedor">
		<g:message code="fabricante.tipoFornecedor.label" default="Tipo Fornecedor" />
		
	</label>
	<g:select name="tipoFornecedor" from="${fabricanteInstance.constraints.tipoFornecedor.inList}" value="${fabricanteInstance?.tipoFornecedor}" valueMessagePrefix="fabricante.tipoFornecedor" noSelection="['': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fabricanteInstance, field: 'email', 'error')} ">
	<label for="email">
		<g:message code="fabricante.email.label" default="Email" />
		
	</label>
	<g:field type="email" name="email" value="${fabricanteInstance?.email}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fabricanteInstance, field: 'telefonePrinc', 'error')} ">
	<label for="telefonePrinc">
		<g:message code="fabricante.telefonePrinc.label" default="Telefone Princ" />
		
	</label>
	<g:textField name="telefonePrinc" maxlength="13" value="${fabricanteInstance?.telefonePrinc}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fabricanteInstance, field: 'telefoneFax', 'error')} ">
	<label for="telefoneFax">
		<g:message code="fabricante.telefoneFax.label" default="Telefone Fax" />
		
	</label>
	<g:textField name="telefoneFax" maxlength="13" value="${fabricanteInstance?.telefoneFax}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: fabricanteInstance, field: 'documentacao', 'error')} ">
	<label for="documentacao">
		<g:message code="fabricante.documentacao.label" default="Documentacao" />
		
	</label>
	<input type="file" id="documentacao" name="documentacao" />
</div>

